package com.bourse.core.services.cotation;

import java.util.List;

import org.joda.time.DateMidnight;

import com.bourse.core.utils.Cotation;
import com.bourse.core.utils.IsinCode;

public interface CotationService {

	/**
	 * Get Isin available from cotation datas
	 * @return
	 */
	public List<IsinCode> getIsinCode();
	
	/**
	 * Return an indice isin composition for a date
	 * @param isinCode must be the isin of index
	 * @param date
	 * @return
	 */
	public List<IsinCode> getIndiceComposition(IsinCode isinCode, DateMidnight date);
	
	/**
	 * Return dailyCotation. 
	 * If there is no value the method makes a mocked cotation with the 
	 * last last close date. 
	 * @param isinCode
	 * @param date
	 * @return
	 */
	public Cotation getCotation(IsinCode isinCode, CotationDayDate date);
	
}
